// pages/auth/auth.js
var app = getApp();
Page({

  bindGetUserInfo: function (e) {
    if (e.detail.userInfo) {
      app.upload_info(app)
      wx.switchTab({
        url: '/pages/test1/test1'
      })
    } else {
      console.log('用户按了拒绝按钮');
    }
  }
})